package com.coder520.mamabike.service;

import com.coder520.mamabike.common.ServerResponse;
import com.coder520.mamabike.common.exception.MyException;
import com.coder520.mamabike.pojo.LoginInfo;
import com.coder520.mamabike.pojo.User;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by ASUS on 2017/8/12.
 */
public interface IUserService {
    /**
     * 用户登录
     * @param loginInfo
     * @return
     * @throws MyException
     */
    ServerResponse login(LoginInfo loginInfo);

    ServerResponse updateNickName(User user);

    ServerResponse sendSMS(String phone,String ip);

    ServerResponse updateHeadImg(MultipartFile file, User user);
}
